import { TOKEN_TIME, TOKEN_TIME_VALUE } from "./constva.js";
export const getTokenTime = () => {
  return localStorage.getItem(TOKEN_TIME);
};
export const setTimeToken = () => {
  return localStorage.setItem(TOKEN_TIME, Date.now());
};
export const ifValidateTokenTime = () => {
  const currentTime = Date.now();
  const tokenTime = getTokenTime();
  return currentTime - tokenTime > TOKEN_TIME_VALUE;
};
